
using ZR.Model.System;

namespace ZR.Model.FacManage
{
    /// <summary>
    /// 工位信息
    /// </summary>
    [SugarTable("fac_station")]
    [Tenant("0")]
    public class FacStation 
    {
        /// <summary>
        /// 工位Id 
        /// </summary>
        [SugarColumn(ColumnName = "station_id", IsPrimaryKey = true, IsIdentity = false, Length = 50)]
        public string StationId { get; set; }

        /// <summary>
        /// 所属产线 
        /// </summary>
        [SugarColumn(ColumnName = "line_id", Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
        public string LineId { get; set; }

        /// <summary>
        /// 工位编码 
        /// </summary>
        [SugarColumn(ColumnName = "station_code", Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
        public string StationCode { get; set; }

        /// <summary>
        /// 工位名称 
        /// </summary>
        [SugarColumn(ColumnName = "station_name", Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
        public string StationName { get; set; }

        /// <summary>
        /// 工位类型 
        /// </summary>
        [SugarColumn(ColumnName = "station_type", Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
        public string StationType { get; set; }

        /// <summary>
        /// 工位标记(IP等) 
        /// </summary>
        [SugarColumn(ColumnName = "station_sign", Length = 50)]
        public string StationSign { get; set; }

        /// <summary>
        /// 库位标记
        /// </summary>
        [SugarColumn(ColumnName = "loc_id", Length = 50)]
        public string LocId { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by", IsOnlyIgnoreUpdate = true, Length = 64)]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time", IsOnlyIgnoreUpdate = true)]

        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by", IsOnlyIgnoreInsert = true, Length = 64)]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time", IsOnlyIgnoreInsert = true)]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        [SugarColumn(ColumnName = "remark", Length = 500)]
        public string Remark { get; set; }
    }
}